import axios from '@/utils/request'

// 密码登录
export const login = (obj) => axios.post('/api/admin/login', obj)

export const getUserlist = (obj) => axios.get('/api/admin/getCurrentPageUser', { params: obj })

// 上传图片
export const uploadImg = (formdata) => axios.post('/api/admin/upLoadImg', formdata)

// 上传用户信息
export const updateUserinfo = (obj) => axios.post('/api/admin/updateUserInfo', obj)
